package com.product.system.service.impl;

import com.product.system.domain.MenuBarChart;
import com.product.system.domain.SysMenu;
import com.product.system.domain.response.SysShowForm;
import com.product.system.mapper.SysMenuMapper;
import com.product.system.mapper.SysRoleMapper;
import com.product.system.mapper.SysRoleMenuMapper;
import com.product.system.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMenuServiceImpl implements ISysMenuService {

    @Autowired
    private SysMenuMapper menuMapper;

    @Autowired
    private SysRoleMapper roleMapper;

    @Autowired
    private SysRoleMenuMapper roleMenuMapper;


    @Override
    public List<SysMenu> selectMenu() {
        return menuMapper.selectMenu();
    }

    @Override
    public List<SysMenu> selectMenu1(SysMenu menu) {
        return menuMapper.selectMenu1(menu);
    }

    @Override
    public Boolean addMenu(SysMenu menu) {
        return menuMapper.addMenu(menu);
    }

    @Override
    public Boolean deleteMenuById(Long menuId) {
        return menuMapper.deleteMenuById(menuId);
    }

    @Override
    public Boolean updateMenu(SysMenu menu) {
        return menuMapper.updateMenu(menu);
    }

    @Override
    public SysMenu treeselect(Integer menuId) {
        return menuMapper.treeselect(menuId);
    }

    @Override
    public List<SysMenu> selectMenu3() {
        return menuMapper.selectMenu3();
    }

    @Override
    public List<MenuBarChart> showMenu() {
        return menuMapper.showMenu();
    }


}
